//
//  JPMgmtFormCell.swift
//  ANOA
//
//  Created by 邱仙凯 on 2022/4/9.
//  Copyright © 2025 aowang. All rights reserved.
//

import UIKit
 
class JPMgmtFormCell: GlobalDetailCell  {
 
   var item1 :KSFormHItem = {
       let appe = KSFormHAppear()
           .roundType(.top)
       let v = KSFormHItem(title: "客户",appearance:appe)
       return v
   }()
   var item2 :KSFormHItem = {
       let appe = KSFormHAppear()
       let v = KSFormHItem(title: "客户名称",appearance:appe )
       v.disabled = true
        return v
   }()
    var item3 :KSFormHItem = {
       let appe = KSFormHAppear()
            .roundType(.bottom)
       let v = KSFormHItem(title: "电话",appearance:appe )
       v.disabled = true
       return v
   }()
  
   
 
   var one:ClientInfo? {
       didSet {
                self.configDataSource()
 
       }
   }
   
   func configDataSource() {
       
       item1.setVal(one!.clientDesc)
       item2.setVal(one!.clientName)
        item3.setVal(one!.tel)
       
   }
   
   func configView() {
       itemBg.add(item1)
           .add(item2)
           .add(item3)
      

   }
  
   
   
   override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
       super.init(style: style, reuseIdentifier: reuseIdentifier)
       self.selectionStyle = .none
       self.itemBg.ks_width = KSGlobal.screenW - 12
       self.configView()
   }
   
   required init?(coder: NSCoder) {
       fatalError("init(coder:) has not been implemented")
   }
   
   override func setSelected(_ selected: Bool, animated: Bool) {
       super.setSelected(selected, animated: animated)
       
       // Configure the view for the selected state
   }
   
   
   
   
}
